import Cookies from "js-cookie";
const Token = "h5_access_token";
/**
 *
 * @param token
 */
export const setToken = (token: string) => {
  //有效时间（6小时）
  const expires = 4 / 24;
  Cookies.set(Token, token, { expires });
};

export const getToken = () => {
  return Cookies.get(Token);
};

export const removeToken = () => {
  return Cookies.remove(Token);
};
